import { Module, Global } from '@nestjs/common';
import { MongooseModule } from '@nestjs/mongoose';
import { MailService } from './services/mail.sevices';
import { MailSchema } from './schemas/mail.schema';
import { MailController } from './mail.controller';
import { MailDbService } from './services/mail.db.services';
import { MailerService } from './services/mailer.service';
import { MessageGateway } from '../services/websocket.service';
import { APP_INTERCEPTOR } from '@nestjs/core';
import { CommonInterceptor } from 'services/common.interceptor';





@Global()
@Module({
  imports: [MongooseModule.forFeature([{ name: 'mail', schema: MailSchema }])],
  controllers: [MailController],
  providers: [MailService,MailDbService,MailerService,MessageGateway],
  exports:[]
})
export class MailModule {}